Mathematical relations tutorial